.class Lcom/waiqin365/base/login/bv;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/bu;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/bu;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/bv;->a:Lcom/waiqin365/base/login/bu;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/base/login/bv;->a:Lcom/waiqin365/base/login/bu;

    iget-object v0, v0, Lcom/waiqin365/base/login/bu;->c:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->refresh()V

    iget-object v0, p0, Lcom/waiqin365/base/login/bv;->a:Lcom/waiqin365/base/login/bu;

    iget-boolean v0, v0, Lcom/waiqin365/base/login/bu;->b:Z

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v1, "im.groupinfo"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "groupMemberSize"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v3

    invoke-virtual {v3}, Lcom/hyphenate/chat/EMClient;->groupManager()Lcom/hyphenate/chat/EMGroupManager;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/base/login/bv;->a:Lcom/waiqin365/base/login/bu;

    iget-object v4, v4, Lcom/waiqin365/base/login/bu;->a:Ljava/lang/String;

    invoke-virtual {v3, v4}, Lcom/hyphenate/chat/EMGroupManager;->getGroup(Ljava/lang/String;)Lcom/hyphenate/chat/EMGroup;

    move-result-object v3

    invoke-virtual {v3}, Lcom/hyphenate/chat/EMGroup;->getMembers()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/bv;->a:Lcom/waiqin365/base/login/bu;

    iget-object v1, v1, Lcom/waiqin365/base/login/bu;->c:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/LoginMainActivity;->sendBroadcast(Landroid/content/Intent;)V

    :cond_0
    return-void
.end method
